Carbon


MPTaskIsPreemptive

Header: Multiprocessing.h Carbon status: Supported

Determines whether a task is preemptively scheduled.

Boolean MPTaskIsPreemptive (
    MPTaskID taskID
);
Parameter descriptions
taskID

The task you want to check. Pass kMPInvalidIDErr if you want to specify the current task.

function result

If true, the task is preemptively scheduled. If false, the task is cooperatively scheduled.

DISCUSSION

If you have code that may be called from either cooperative or preemptive tasks, that code can call MPTaskIsPreemptive if its actions should differ depending on its execution environment.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)